home *** CD-ROM | disk | FTP | other *** search
Wrap
/* $VER: htmlext.smod Rev.059 © by Juan Manuel Wehrli 1999 - 2000 HTMLEXT System Modul */ dbname = "HTMLEXT" if ~show("L",rexxreqtools.library) then do call addlib("rexxreqtools.library",0,-30,0) end if ~show("L",rexxtricks.library) then do call addlib("rexxtricks.library",0,-30,0) end NL = '0a'x OPTIONS RESULTS PARSE ARG befehl option ADDRESS COMMAND /* START */ if befehl = "START" then do if EXISTS('guis:gui4cli') then do 'assign GUIs: HTMLEXT:GUI ADD' 'assign LIBS: HTMLEXT:Libs ADD' 'assign FONTS: HTMLEXT:Fonts ADD' 'gui HTMLEXT:GUI/HTMLEXT' end else do call rtezrequest('Gui4Cli ist nicht oder nicht korrekt installiert!' || nl || 'Bitte kontrolieren Sie die Gui4Cli Installation ...','Werde ich nun überprüfen.',dbname || ': Gui4Cli Erweiterung fehlt ...',,nil) end end /* WINAWEB */ if befehl = "WINAWEB" then do call rtezrequest('Nach Bestätigeung aktivieren Sie bitte das AWeb Fenster,' || nl || 'das der gewünschten Grösse entspricht.','Weiter',dbname || ': Fenster Positionierung',,nil) 'HTMLEXT:c/WinInfo >env:.htmlext' if open('f','env:.htmlext','r') then do nil = readln('f') nil = readln('f') widthstr = readln('f') heightstr = readln('f') topstr = readln('f') leftstr = readln('f') call close('f') end lw = LENGTH(widthstr) strl = lw - 12 width = RIGHT(widthstr, strl) width = COMPRESS(width) height = heightstr lw = LENGTH(heightstr) strl = lw - 12 height = RIGHT(heightstr, strl) height = COMPRESS(height) vtop = topstr lw = LENGTH(topstr) strl = lw - 12 vtop = RIGHT(topstr, strl) vtop = COMPRESS(vtop) lefte = leftstr lw = LENGTH(leftstr) strl = lw - 12 vleft = RIGHT(leftstr, strl) vleft = COMPRESS(vleft) call rtezrequest('Breite: ' || width || nl || 'Höhe: ' || height || nl || 'Von Oben: ' || vtop || nl || 'Von Links: ' || vleft,'Übernehmen|Abbrechen',dbname || ': Fenster Positionierung',,reqv) if reqv = 1 then do 'setenv ".htmlext.tmp" "' || vleft || ',' || vtop || ',' || width || ',' || height || '"' end else do 'setenv ".htmlext.tmp" "-"' end exit end /* WINGOLDED */ if befehl = "WINGOLDED" then do call rtezrequest('Nach Bestätigeung aktivieren Sie bitte das GoldED Fenster,' || nl || 'das der gewünschten Grösse entspricht.','Weiter',dbname || ': Fenster Positionierung',,nil) 'HTMLEXT:c/WinInfo >env:.htmlext' if open('f','env:.htmlext','r') then do nil = readln('f') nil = readln('f') widthstr = readln('f') heightstr = readln('f') topstr = readln('f') leftstr = readln('f') call close('f') end lw = LENGTH(widthstr) strl = lw - 12 width = RIGHT(widthstr, strl) width = COMPRESS(width) height = heightstr lw = LENGTH(heightstr) strl = lw - 12 height = RIGHT(heightstr, strl) height = COMPRESS(height) vtop = topstr lw = LENGTH(topstr) strl = lw - 12 vtop = RIGHT(topstr, strl) vtop = COMPRESS(vtop) lefte = leftstr lw = LENGTH(leftstr) strl = lw - 12 vleft = RIGHT(leftstr, strl) vleft = COMPRESS(vleft) call rtezrequest('Breite: ' || width || nl || 'Höhe: ' || height || nl || 'Von Oben: ' || vtop || nl || 'Von Links: ' || vleft,'Übernehmen|Abbrechen',dbname || ': Fenster Positionierung',,reqv) if reqv = 1 then do 'setenv ".htmlext.tmp" "X ' || vleft || ' Y ' || vtop || ' WIDTH ' || width || ' HEIGHT ' || height || '"' end else do 'setenv ".htmlext.tmp" "-"' end exit end /* SITESIZE */ if befehl = "SITESIZE" then do 'list ' || Option || ' LFORMAT="%L" FILES ALL >t:htmlext/sitesize.list' if open('f','t:htmlext/sitesize.list','r') then do ssize = readln('f') do while ~EOF('f') nsize = readln('f') if nsize ~= "" then do ssize = ssize + nsize end end ssizekb = ssize / 1000 call rtezrequest('Die Gesammtgrösse der Site beträgt:' || nl || ssizekb || ' kB','Weiter',dbname || ': Web-Site Umfang in kB ...',,nil) end end /* DIRSIZE */ if befehl = "DIRSIZE" then do 'list ' || Option || ' LFORMAT="%L" FILES ALL >t:htmlext/dirsize.list' if open('f','t:htmlext/dirsize.list','r') then do ssize = readln('f') do while ~EOF('f') nsize = readln('f') if nsize ~= "" then do ssize = ssize + nsize end end ssizekb = ssize / 1000 call rtezrequest('Die Gesammtgrösse des aktuellen Verzeichnis beträgt:' || nl || ssizekb || ' kB','Weiter',dbname || ': Verzeichnis Umfang in kB ...',,nil) end end if befehl = "WBINFO" then do address Workbench INFO Option end /* MREP */ if befehl = "MREP" then do if open("f","t:htmlext/mrep.files","r") then do zf = 0 do while ~EOF("f") fzeile = READLN("f") fzeile = COMPRESS(fzeile) if fzeile ~= "" then do zf = zf + 1 if open('f2','t:htmlext/mrep.list','r') then do zr = 0 do while ~EOF('f2') lzeile = READLN("f2") if lzeile ~= "" then do suchen = LEFT(lzeile,45) suchen = STRIP(suchen) ersetzen = RIGHT(lzeile,45) ersetzen = STRIP(ersetzen) zr = zr + 1 address "Gui4Cli" 'Update Infobar 1 "Bearbeite ' || zf || '/ ' || zr || ': ' || fzeile || ' Von: ' || suchen || ' Durch: ' || ersetzen || '"' address command 'rep "' || fzeile || '" "' || suchen || '" "' || ersetzen|| '" I' end end call CLOSE('f2') end end end end call CLOSE('f') address "Gui4Cli" 'Update Infobar 1 "Ersetzfunktion beendet. Es wurden ' || zf || ' Dateien mit je ' || zr || ' Operationen bearbeitet."' end /* REQSTRING */ if befehl = "REQSTRING" then do title = GETENV('.htmlext.rqt') body = GETENV('.htmlext.rqb') def = GETENV('.htmlext.rqd') buttons = GETENV('.htmlext.rqu') str = rtgetstring(def,body,title,buttons,"rtgs_backfill = false",res) if res = 0 then do bool = SETENV('.htmlext.res','0') exit end bool = SETENV('.htmlext.res','1') bool = SETENV('.htmlext.tmp',str) end /* GETSCRMODE */ if befehl = "GETSCRMODE" then do 'htmlext:c/getmodeinfo >t:htmlext/scrmode' if open('f','t:htmlext/scrmode','r') then do nil = readln('f') nil = readln('f') zeile = readln('f') zeile2 = RIGHT(zeile,10) str = "1152/900/16/" str = str || zeile2 call setenv('.htmlext.tmp',str) call rtezrequest('Bitte passen Sie die Angaben WIDTH/HEIGHT/DEPTH/ von Hand an!' || nl || 'Es wird standardmässig 1152/900/16/ gesetzt ...','Werde ich nun machen',dbname || ': Screenmode einstellungen ...',,nil) end end exit